﻿// MT455




using Little.Soldier.SWIFT;
using Little.Soldier.SWIFT.Definition;
using System.ComponentModel;

namespace Little.Soldier.SWIFT.Messages.Category4
{
  public class MT455 : SwiftMessage
  {
    private static SwiftMessageDefinition MessageDefinition;
    private static SwiftTagDefinition U0002;
    private static SwiftTagSubItemDefinition U0003;
    private static SwiftTagDefinition U0004;
    private static SwiftTagSubItemDefinition U0005;
    private static SwiftTagDefinition U0006;
    private static SwiftTagSubItemDefinition U0007;
    private static SwiftTagDefinition U0008;
    private static SwiftTagSubItemDefinition U000E;
    private static SwiftTagDefinition U000F;
    private static SwiftTagSubItemDefinition U0010;
    private static SwiftTagSubItemDefinition U0011;
    private static SwiftTagSubItemDefinition U0012;
    private static SwiftTagChoiceDefinition U0013;
    private static SwiftTagDefinition U0014;
    private static SwiftTagSubItemDefinition U0015;
    private static SwiftTagSubItemDefinition U0016;
    private static SwiftTagSubItemDefinition U0017;
    private static SwiftTagDefinition U0018;
    private static SwiftTagSubItemDefinition U0019;
    private static SwiftTagSubItemDefinition U001A;
    private static SwiftTagSubItemDefinition U001B;
    private static SwiftTagChoiceDefinition U001C;
    private static SwiftTagDefinition U001D;
    private static SwiftTagSubItemDefinition U001E;
    private static SwiftTagSubItemDefinition U001F;
    private static SwiftTagDefinition U007F;
    private static SwiftTagSubItemDefinition U0080;
    private static SwiftTagSubItemDefinition U0081;
    private static SwiftTagDefinition U0082;
    private static SwiftTagSubItemDefinition U0083;
    private static SwiftTagSubItemDefinition U0084;
    private static SwiftTagDefinition U0086;

    [Description("Transaction Reference Number")]
    public Tag20 TransactionReferenceNumber_20
    {
      get
      {
        return new Tag20((SwiftElement) this, 0, (SwiftDefinitionElement) MT455.U0002);
      }
    }

    [Description("Transaction Reference Number")]
    public Tag20 Tag20_TransactionReferenceNumber
    {
      get
      {
        return this.TransactionReferenceNumber_20;
      }
    }

    [Description("Related Reference")]
    public Tag21 RelatedReference_21
    {
      get
      {
        return new Tag21((SwiftElement) this, 0, (SwiftDefinitionElement) MT455.U0004);
      }
    }

    [Description("Related Reference")]
    public Tag21 Tag21_RelatedReference
    {
      get
      {
        return this.RelatedReference_21;
      }
    }

    [Description("Account Identification")]
    public Tag25 AccountIdentification_25
    {
      get
      {
        return new Tag25((SwiftElement) this, 0, (SwiftDefinitionElement) MT455.U0006);
      }
    }

    [Description("Account Identification")]
    public Tag25 Tag25_AccountIdentification
    {
      get
      {
        return this.AccountIdentification_25;
      }
    }

    [Description("Date Of Cash Letter")]
    public Tag30 DateOfCashLetter_30
    {
      get
      {
        return new Tag30((SwiftElement) this, 0, (SwiftDefinitionElement) MT455.U0008);
      }
    }

    [Description("Date Of Cash Letter")]
    public Tag30 Tag30_DateOfCashLetter
    {
      get
      {
        return this.DateOfCashLetter_30;
      }
    }

    [Description("Value Date and Original Amount")]
    public Tag32A ValueDateAndOriginalAmount_32A
    {
      get
      {
        return new Tag32A((SwiftElement) this, 0, (SwiftDefinitionElement) MT455.U000F);
      }
    }

    [Description("Value Date and Original Amount")]
    public Tag32A Tag32A_ValueDateAndOriginalAmount
    {
      get
      {
        return this.ValueDateAndOriginalAmount_32A;
      }
    }

    [Description("Value Date and Adjustment Amount")]
    public Tag33C ValueDateAndAdjustmentAmount_33C
    {
      get
      {
        return new Tag33C((SwiftElement) this, 0, (SwiftDefinitionElement) MT455.U0014);
      }
    }

    [Description("Value Date and Adjustment Amount")]
    public Tag33C Tag33C_ValueDateAndAdjustmentAmount
    {
      get
      {
        return this.ValueDateAndAdjustmentAmount_33C;
      }
    }

    [Description("Value Date and Adjustment Amount")]
    public Tag33D ValueDateAndAdjustmentAmount_33D
    {
      get
      {
        return new Tag33D((SwiftElement) this, 0, (SwiftDefinitionElement) MT455.U0018);
      }
    }

    [Description("Value Date and Adjustment Amount")]
    public Tag33D Tag33D_ValueDateAndAdjustmentAmount
    {
      get
      {
        return this.ValueDateAndAdjustmentAmount_33D;
      }
    }

    [Description("Sender Of Cash Letter")]
    public Tag52A SenderOfCashLetter_52A
    {
      get
      {
        return new Tag52A((SwiftElement) this, 0, (SwiftDefinitionElement) MT455.U001D);
      }
    }

    [Description("Sender Of Cash Letter")]
    public Tag52A Tag52A_SenderOfCashLetter
    {
      get
      {
        return this.SenderOfCashLetter_52A;
      }
    }

    [Description("Sender Of Cash Letter")]
    public Tag52B SenderOfCashLetter_52B
    {
      get
      {
        return new Tag52B((SwiftElement) this, 0, (SwiftDefinitionElement) MT455.U007F);
      }
    }

    [Description("Sender Of Cash Letter")]
    public Tag52B Tag52B_SenderOfCashLetter
    {
      get
      {
        return this.SenderOfCashLetter_52B;
      }
    }

    [Description("Sender Of Cash Letter")]
    public Tag52D SenderOfCashLetter_52D
    {
      get
      {
        return new Tag52D((SwiftElement) this, 0, (SwiftDefinitionElement) MT455.U0082);
      }
    }

    [Description("Sender Of Cash Letter")]
    public Tag52D Tag52D_SenderOfCashLetter
    {
      get
      {
        return this.SenderOfCashLetter_52D;
      }
    }

    [Description("Reason for Adjustment")]
    public Tag77A ReasonForAdjustment_77A
    {
      get
      {
        return new Tag77A((SwiftElement) this, 0, (SwiftDefinitionElement) MT455.U0086);
      }
    }

    [Description("Reason for Adjustment")]
    public Tag77A Tag77A_ReasonForAdjustment
    {
      get
      {
        return this.ReasonForAdjustment_77A;
      }
    }

    public MT455()
      : base(true)
    {
    }

    public MT455(SwiftMessage message)
      : base(message)
    {
    }

    internal override SwiftMessageDefinition MsgDefinition()
    {
      return MT455.MessageDefinition;
    }

    protected override void InitSwiftMessageDefinition()
    {
      MT455.MessageDefinition = new SwiftMessageDefinition("MT455", "Cash Letter Credit Adjustment Advice");
      MT455.U0002 = new SwiftTagDefinition("TransactionReferenceNumber_20", "Transaction Reference Number");
      MT455.U0002.TagName = ":20:";
      MT455.U0003 = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT455.U0002.Elements.Add((SwiftDefinitionElement) MT455.U0003);
      MT455.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT455.U0002);
      MT455.U0004 = new SwiftTagDefinition("RelatedReference_21", "Related Reference");
      MT455.U0004.TagName = ":21:";
      MT455.U0005 = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT455.U0004.Elements.Add((SwiftDefinitionElement) MT455.U0005);
      MT455.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT455.U0004);
      MT455.U0006 = new SwiftTagDefinition("AccountIdentification_25", "Account Identification");
      MT455.U0006.TagName = ":25:";
      MT455.U0006.Mandatory = false;
      MT455.U0007 = new SwiftTagSubItemDefinition("AccountIdentification", "Account Identification");
      MT455.U0006.Elements.Add((SwiftDefinitionElement) MT455.U0007);
      MT455.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT455.U0006);
      MT455.U0008 = new SwiftTagDefinition("DateOfCashLetter_30", "Date Of Cash Letter");
      MT455.U0008.TagName = ":30:";
      MT455.U000E = new SwiftTagSubItemDefinition("Date", "Date");
      MT455.U0008.Elements.Add((SwiftDefinitionElement) MT455.U000E);
      MT455.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT455.U0008);
      MT455.U000F = new SwiftTagDefinition("ValueDateAndOriginalAmount_32A", "Value Date and Original Amount");
      MT455.U000F.TagName = ":32A:";
      MT455.U0010 = new SwiftTagSubItemDefinition("Date", "Date");
      MT455.U000F.Elements.Add((SwiftDefinitionElement) MT455.U0010);
      MT455.U0011 = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT455.U000F.Elements.Add((SwiftDefinitionElement) MT455.U0011);
      MT455.U0012 = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT455.U000F.Elements.Add((SwiftDefinitionElement) MT455.U0012);
      MT455.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT455.U000F);
      MT455.U0013 = new SwiftTagChoiceDefinition("Choice", "");
      MT455.U0013.Multiple = true;
      MT455.U0014 = new SwiftTagDefinition("ValueDateAndAdjustmentAmount_33C", "Value Date and Adjustment Amount");
      MT455.U0014.TagName = ":33C:";
      MT455.U0015 = new SwiftTagSubItemDefinition("Date", "Date");
      MT455.U0014.Elements.Add((SwiftDefinitionElement) MT455.U0015);
      MT455.U0016 = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT455.U0014.Elements.Add((SwiftDefinitionElement) MT455.U0016);
      MT455.U0017 = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT455.U0014.Elements.Add((SwiftDefinitionElement) MT455.U0017);
      MT455.U0013.Elements.Add((SwiftDefinitionElement) MT455.U0014);
      MT455.U0018 = new SwiftTagDefinition("ValueDateAndAdjustmentAmount_33D", "Value Date and Adjustment Amount");
      MT455.U0018.TagName = ":33D:";
      MT455.U0019 = new SwiftTagSubItemDefinition("Date", "Date");
      MT455.U0018.Elements.Add((SwiftDefinitionElement) MT455.U0019);
      MT455.U001A = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT455.U0018.Elements.Add((SwiftDefinitionElement) MT455.U001A);
      MT455.U001B = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT455.U0018.Elements.Add((SwiftDefinitionElement) MT455.U001B);
      MT455.U0013.Elements.Add((SwiftDefinitionElement) MT455.U0018);
      MT455.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT455.U0013);
      MT455.U001C = new SwiftTagChoiceDefinition("Choice", "");
      MT455.U001C.Mandatory = false;
      MT455.U001C.Multiple = true;
      MT455.U001D = new SwiftTagDefinition("SenderOfCashLetter_52A", "Sender Of Cash Letter");
      MT455.U001D.TagName = ":52A:";
      MT455.U001E = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT455.U001E.Mandatory = false;
      MT455.U001D.Elements.Add((SwiftDefinitionElement) MT455.U001E);
      MT455.U001F = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT455.U001D.Elements.Add((SwiftDefinitionElement) MT455.U001F);
      MT455.U001C.Elements.Add((SwiftDefinitionElement) MT455.U001D);
      MT455.U007F = new SwiftTagDefinition("SenderOfCashLetter_52B", "Sender Of Cash Letter");
      MT455.U007F.TagName = ":52B:";
      MT455.U0080 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT455.U0080.Mandatory = false;
      MT455.U007F.Elements.Add((SwiftDefinitionElement) MT455.U0080);
      MT455.U0081 = new SwiftTagSubItemDefinition("Location", "Location");
      MT455.U0081.Mandatory = false;
      MT455.U007F.Elements.Add((SwiftDefinitionElement) MT455.U0081);
      MT455.U001C.Elements.Add((SwiftDefinitionElement) MT455.U007F);
      MT455.U0082 = new SwiftTagDefinition("SenderOfCashLetter_52D", "Sender Of Cash Letter");
      MT455.U0082.TagName = ":52D:";
      MT455.U0083 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT455.U0083.Mandatory = false;
      MT455.U0082.Elements.Add((SwiftDefinitionElement) MT455.U0083);
      MT455.U0084 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT455.U0082.Elements.Add((SwiftDefinitionElement) MT455.U0084);
      MT455.U001C.Elements.Add((SwiftDefinitionElement) MT455.U0082);
      MT455.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT455.U001C);
      MT455.U0086 = new SwiftTagDefinition("ReasonForAdjustment_77A", "Reason for Adjustment");
      MT455.U0086.TagName = ":77A:";
      MT455.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT455.U0086);
    }
  }
}
